package com.glela.order.model.response;

import java.util.ArrayList;
import java.util.List;

import com.glela.order.model.OrderDetail;
import com.glela.order.model.OrderInfo;

public class OrderInfoVo {

	private Long				OrderInfoId;
	private String				orderSn;
	private Long				userId;
	private int					storeId;
	private String				storeName;
	private String				storeProvince;
	private String				storeCity;
	private String				storeArea;
	private String				storeAddress;
	private Double				storeLon;
	private Double				storeLat;
	private int					totalPrice;
	private int					totalSettlementPrice;
	private int					cashCoin;
	private Integer				balancePaid;
	private int					promotionId;
	private int					promotionDiscount;
	private Integer				redPacketId;									//红包ID
	private Long				redPacketFee;									//红包抵扣金额
	private int					totalFee;
	private int					commisionFee;
	private int					pointFee;
	private String				payTime;
	private Integer				payType			= 0;
	private String				expressName;
	private String				expressCode;
	private String				expressNo;
	private String				completeTime;
	private Long				orderObjectId;
	private int					memberDeliveryAddressId;
	private int					deliveryWay;
	private int					isBill;
	private int					billType;
	private String				billHeader;
	private int					freight;
	private int					paymentFee;
	private String				linkMan;
	private String				mobile;
	private String				province;
	private String				city;
	private String				area;
	private String				street;
	private String				address;
	private Double				lon;
	private Double				lat;
	private String				refundDate;
	private int					refundFee;
	private int					refundCashCoin;
	private String				remark;
	private int					inState;
	private String				inDate;
	private String				inVerification;
	private int					procedureFee;
	private int					bankIn;
	private String				createTime;
	private String				updateTime;
	private int					status;
	private List<OrderDetail>	listOrderDetail;
	private int					sumTotalFee;									// 总销售额
	private int					refund;
	private int					commentStatus;
	private String				taxpayerNo;
	private Long				oActivDiscountFee;
	private int isOverseasOrder;// 是否是海外购 1是 0不是
	private int isAfterSale=1; // android 售后状态 默认可以
	private List<OrderDetail>	giftsProducts	= new ArrayList<OrderDetail>();	//赠品行

	public OrderInfoVo() {}

	public OrderInfoVo(OrderInfo orderInfo) {
		super();
		this.OrderInfoId = orderInfo.getId();
		this.orderSn = orderInfo.getOrderSn();
		this.userId = orderInfo.getUserId();
		this.storeId = orderInfo.getStoreId();
		this.storeName = orderInfo.getStoreName();
		this.storeProvince = orderInfo.getStoreProvince();
		this.storeCity = orderInfo.getStoreCity();
		this.storeArea = orderInfo.getStoreArea();
		this.storeAddress = orderInfo.getStoreAddress();
		this.storeLon = orderInfo.getStoreLon();
		this.storeLat = orderInfo.getStoreLat();
		this.totalPrice = orderInfo.getTotalPrice();
		this.totalSettlementPrice = orderInfo.getTotalSettlementPrice();
		this.cashCoin = orderInfo.getCashCoin();
		this.promotionId = orderInfo.getPromotionId();
		this.promotionDiscount = orderInfo.getPromotionDiscount();
		setRedPacketId(orderInfo.getRedPacketId());
		setRedPacketFee(orderInfo.getRedPacketFee());
		this.commisionFee = orderInfo.getCommisionFee();
		this.payTime = orderInfo.getPayTime();
		this.payType = orderInfo.getPayType();
		this.expressName = orderInfo.getExpressName();
		this.expressCode = orderInfo.getExpressCode();
		this.expressNo = orderInfo.getExpressNo();
		this.completeTime = orderInfo.getCompleteTime();
		this.orderObjectId = orderInfo.getOrderObjectId();
		this.memberDeliveryAddressId = orderInfo.getMemberDeliveryAddressId();
		this.deliveryWay = orderInfo.getDeliveryWay();
		this.isBill = orderInfo.getIsBill();
		this.billType = orderInfo.getBillType();
		this.billHeader = orderInfo.getBillHeader();
		this.paymentFee = orderInfo.getPaymentFee();
		this.linkMan = orderInfo.getLinkMan();
		this.mobile = orderInfo.getMobile();
		this.province = orderInfo.getProvince();
		this.city = orderInfo.getCity();
		this.area = orderInfo.getArea();
		this.street = orderInfo.getStreet();
		this.address = orderInfo.getAddress();
		this.lon = orderInfo.getLon();
		this.lat = orderInfo.getLat();
		this.refundDate = orderInfo.getRefundDate();
		this.refundFee = orderInfo.getRefundFee();
		this.refundCashCoin = orderInfo.getRefundCashCoin();
		this.remark = orderInfo.getRemark();
		this.inState = orderInfo.getInState();
		this.inDate = orderInfo.getInDate();
		this.inVerification = orderInfo.getInVerification();
		this.procedureFee = orderInfo.getProcedureFee();
		this.bankIn = orderInfo.getBankIn();
		this.createTime = orderInfo.getCreateTime();
		this.updateTime = orderInfo.getUpdateTime();
		this.status = orderInfo.getStatus();
		this.refund = orderInfo.getRefund();
		this.commentStatus = orderInfo.getCommentStatus();
		this.balancePaid = orderInfo.getBalancePaid();
		this.pointFee = orderInfo.getPointFee();
		this.taxpayerNo = orderInfo.getTaxpayerNo();
		this.oActivDiscountFee = orderInfo.getoActivDiscountFee();
	}

	public void setOrderInfoVo(OrderInfo orderInfo) {
		this.OrderInfoId = orderInfo.getId();
		this.orderSn = orderInfo.getOrderSn();
		this.userId = orderInfo.getUserId();
		this.storeId = orderInfo.getStoreId();
		this.storeName = orderInfo.getStoreName();
		this.storeProvince = orderInfo.getStoreProvince();
		this.storeCity = orderInfo.getStoreCity();
		this.storeArea = orderInfo.getStoreArea();
		this.storeAddress = orderInfo.getStoreAddress();
		this.storeLon = orderInfo.getStoreLon();
		this.storeLat = orderInfo.getStoreLat();
		this.totalPrice = orderInfo.getTotalPrice();
		this.totalSettlementPrice = orderInfo.getTotalSettlementPrice();
		this.cashCoin = orderInfo.getCashCoin();
		this.promotionId = orderInfo.getPromotionId();
		this.promotionDiscount = orderInfo.getPromotionDiscount();
		setRedPacketId(orderInfo.getRedPacketId());
		setRedPacketFee(orderInfo.getRedPacketFee());
		this.commisionFee = orderInfo.getCommisionFee();
		this.payTime = orderInfo.getPayTime() == null ? "" : orderInfo.getPayTime().substring(0, 19);
		this.payType = orderInfo.getPayType();
		this.expressName = orderInfo.getExpressName();
		this.expressCode = orderInfo.getExpressCode();
		this.expressNo = orderInfo.getExpressNo();
		this.completeTime = orderInfo.getCompleteTime();
		this.orderObjectId = orderInfo.getOrderObjectId();
		this.memberDeliveryAddressId = orderInfo.getMemberDeliveryAddressId();
		this.deliveryWay = orderInfo.getDeliveryWay();
		this.isBill = orderInfo.getIsBill();
		this.billType = orderInfo.getBillType();
		this.billHeader = orderInfo.getBillHeader();
		this.paymentFee = orderInfo.getPaymentFee();
		this.linkMan = orderInfo.getLinkMan();
		this.mobile = orderInfo.getMobile();
		this.province = orderInfo.getProvince();
		this.city = orderInfo.getCity();
		this.area = orderInfo.getArea();
		this.street = orderInfo.getStreet();
		this.address = orderInfo.getAddress();
		this.lon = orderInfo.getLon();
		this.lat = orderInfo.getLat();
		this.refundDate = orderInfo.getRefundDate();
		this.refundFee = orderInfo.getRefundFee();
		this.refundCashCoin = orderInfo.getRefundCashCoin();
		this.remark = orderInfo.getRemark();
		this.inState = orderInfo.getInState();
		this.inDate = orderInfo.getInDate();
		this.inVerification = orderInfo.getInVerification();
		this.procedureFee = orderInfo.getProcedureFee();
		this.bankIn = orderInfo.getBankIn();
		this.createTime = orderInfo.getCreateTime().substring(0, 19);
		this.updateTime = orderInfo.getUpdateTime();
		this.status = orderInfo.getStatus();
		this.refund = orderInfo.getRefund();
		this.commentStatus = orderInfo.getCommentStatus();
		this.balancePaid = orderInfo.getBalancePaid();
		this.pointFee = orderInfo.getPointFee();
		this.taxpayerNo = orderInfo.getTaxpayerNo();
		this.oActivDiscountFee = orderInfo.getoActivDiscountFee();
	}

	public Long getoActivDiscountFee() {
		return oActivDiscountFee;
	}

	public void setoActivDiscountFee(Long oActivDiscountFee) {
		this.oActivDiscountFee = oActivDiscountFee;
	}

	public List<OrderDetail> getGiftsProducts() {
		return giftsProducts;
	}

	public void setGiftsProducts(List<OrderDetail> giftsProducts) {
		this.giftsProducts = giftsProducts;
	}

	public String getTaxpayerNo() {
		return taxpayerNo;
	}

	public void setTaxpayerNo(String taxpayerNo) {
		this.taxpayerNo = taxpayerNo;
	}

	public int getPointFee() {
		return pointFee;
	}

	public void setPointFee(int pointFee) {
		this.pointFee = pointFee;
	}

	public Long getOrderInfoId() {
		return OrderInfoId;
	}

	public void setOrderInfoId(Long orderInfoId) {
		OrderInfoId = orderInfoId;
	}

	public String getOrderSn() {
		return orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public int getStoreId() {
		return storeId;
	}

	public void setStoreId(int storeId) {
		this.storeId = storeId;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public String getStoreProvince() {
		return storeProvince;
	}

	public void setStoreProvince(String storeProvince) {
		this.storeProvince = storeProvince;
	}

	public String getStoreCity() {
		return storeCity;
	}

	public void setStoreCity(String storeCity) {
		this.storeCity = storeCity;
	}

	public String getStoreArea() {
		return storeArea;
	}

	public void setStoreArea(String storeArea) {
		this.storeArea = storeArea;
	}

	public String getStoreAddress() {
		return storeAddress;
	}

	public void setStoreAddress(String storeAddress) {
		this.storeAddress = storeAddress;
	}

	public Double getStoreLon() {
		return storeLon;
	}

	public void setStoreLon(Double storeLon) {
		this.storeLon = storeLon;
	}

	public Double getStoreLat() {
		return storeLat;
	}

	public void setStoreLat(Double storeLat) {
		this.storeLat = storeLat;
	}

	public int getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(int totalPrice) {
		this.totalPrice = totalPrice;
	}

	public int getTotalSettlementPrice() {
		return totalSettlementPrice;
	}

	public void setTotalSettlementPrice(int totalSettlementPrice) {
		this.totalSettlementPrice = totalSettlementPrice;
	}

	public int getCashCoin() {
		return cashCoin;
	}

	public void setCashCoin(int cashCoin) {
		this.cashCoin = cashCoin;
	}

	public int getPromotionId() {
		return promotionId;
	}

	public void setPromotionId(int promotionId) {
		this.promotionId = promotionId;
	}

	public int getPromotionDiscount() {
		return promotionDiscount;
	}

	public void setPromotionDiscount(int promotionDiscount) {
		this.promotionDiscount = promotionDiscount;
	}

	public Integer getRedPacketId() {
		return redPacketId;
	}

	public void setRedPacketId(Integer redPacketId) {
		this.redPacketId = redPacketId;
	}

	public Long getRedPacketFee() {
		return redPacketFee;
	}

	public void setRedPacketFee(Long redPacketFee) {
		this.redPacketFee = redPacketFee;
	}

	public int getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(int totalFee) {
		this.totalFee = totalFee;
	}

	public int getCommisionFee() {
		return commisionFee;
	}

	public void setCommisionFee(int commisionFee) {
		this.commisionFee = commisionFee;
	}

	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}

	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}

	public String getExpressName() {
		return expressName;
	}

	public void setExpressName(String expressName) {
		this.expressName = expressName;
	}

	public String getExpressCode() {
		return expressCode;
	}

	public void setExpressCode(String expressCode) {
		this.expressCode = expressCode;
	}

	public String getExpressNo() {
		return expressNo;
	}

	public void setExpressNo(String expressNo) {
		this.expressNo = expressNo;
	}

	public String getCompleteTime() {
		return completeTime;
	}

	public void setCompleteTime(String completeTime) {
		this.completeTime = completeTime;
	}

	public int getMemberDeliveryAddressId() {
		return memberDeliveryAddressId;
	}

	public void setMemberDeliveryAddressId(int memberDeliveryAddressId) {
		this.memberDeliveryAddressId = memberDeliveryAddressId;
	}

	public int getDeliveryWay() {
		return deliveryWay;
	}

	public void setDeliveryWay(int deliveryWay) {
		this.deliveryWay = deliveryWay;
	}

	public int getIsBill() {
		return isBill;
	}

	public void setIsBill(int isBill) {
		this.isBill = isBill;
	}

	public int getBillType() {
		return billType;
	}

	public void setBillType(int billType) {
		this.billType = billType;
	}

	public String getBillHeader() {
		return billHeader;
	}

	public void setBillHeader(String billHeader) {
		this.billHeader = billHeader;
	}

	public int getFreight() {
		return freight;
	}

	public void setFreight(int freight) {
		this.freight = freight;
	}

	public int getPaymentFee() {
		return paymentFee;
	}

	public void setPaymentFee(int paymentFee) {
		this.paymentFee = paymentFee;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Double getLon() {
		return lon;
	}

	public void setLon(Double lon) {
		this.lon = lon;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public String getRefundDate() {
		return refundDate;
	}

	public void setRefundDate(String refundDate) {
		this.refundDate = refundDate;
	}

	public int getRefundFee() {
		return refundFee;
	}

	public void setRefundFee(int refundFee) {
		this.refundFee = refundFee;
	}

	public int getRefundCashCoin() {
		return refundCashCoin;
	}

	public void setRefundCashCoin(int refundCashCoin) {
		this.refundCashCoin = refundCashCoin;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getInState() {
		return inState;
	}

	public void setInState(int inState) {
		this.inState = inState;
	}

	public String getInDate() {
		return inDate;
	}

	public Integer getBalancePaid() {
		return balancePaid;
	}

	public void setBalancePaid(Integer balancePaid) {
		this.balancePaid = balancePaid;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public void setInDate(String inDate) {
		this.inDate = inDate;
	}

	public String getInVerification() {
		return inVerification;
	}

	public void setInVerification(String inVerification) {
		this.inVerification = inVerification;
	}

	public int getProcedureFee() {
		return procedureFee;
	}

	public void setProcedureFee(int procedureFee) {
		this.procedureFee = procedureFee;
	}

	public int getBankIn() {
		return bankIn;
	}

	public void setBankIn(int bankIn) {
		this.bankIn = bankIn;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public List<OrderDetail> getListOrderDetail() {
		return listOrderDetail;
	}

	public void setListOrderDetail(List<OrderDetail> listOrderDetail) {
		this.listOrderDetail = listOrderDetail;
	}

	public int getSumTotalFee() {
		return sumTotalFee;
	}

	public void setSumTotalFee(int sumTotalFee) {
		this.sumTotalFee = sumTotalFee;
	}

	public Long getOrderObjectId() {
		return orderObjectId;
	}

	public void setOrderObjectId(Long orderObjectId) {
		this.orderObjectId = orderObjectId;
	}

	public int getRefund() {
		return refund;
	}

	public void setRefund(int refund) {
		this.refund = refund;
	}

	public int getCommentStatus() {
		return commentStatus;
	}

	public void setCommentStatus(int commentStatus) {
		this.commentStatus = commentStatus;
	}

	public int getIsOverseasOrder() {
		return isOverseasOrder;
	}

	public void setIsOverseasOrder(int isOverseasOrder) {
		this.isOverseasOrder = isOverseasOrder;
	}
	public int getIsAfterSale() {
		return isAfterSale;
	}

	public void setIsAfterSale(int isAfterSale) {
		this.isAfterSale = isAfterSale;
	}
}
